﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="7.6add.aspx.cs" Inherits="_7_6add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <p>
                商品名：<asp:TextBox ID="TXTName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="TXTNameValidator" runat="server" ControlToValidate="TXTName" ForeColor="Red" ErrorMessage="请输入商品名"></asp:RequiredFieldValidator>
            </p>
            <p>
                价格：<asp:TextBox ID="TXTPrice" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="TXTPriceValidator" runat="server" ControlToValidate="TXTPrice" ForeColor="Red" ErrorMessage="请输入价格"></asp:RequiredFieldValidator>
            </p>
            <p>
                描述：<asp:TextBox ID="TXTDescn" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="TXTDescnValidator" runat="server" ControlToValidate="TXTDescn" ForeColor="Red" ErrorMessage="请输入描述"></asp:RequiredFieldValidator>
            </p>
            <p>
                库存：<asp:TextBox ID="TXTQty" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="TXTQtyValidator" runat="server" ControlToValidate="TXTQty" ForeColor="Red" ErrorMessage="请输入库存"></asp:RequiredFieldValidator>
            </p>
            <asp:Button ID="BtnAdd" runat="server" Text="添加" OnClick="BtnAdd_Click" />
        </div>
    </form>
</body>
</html>
